import { getuserinfo ,getgoods} from "@/request/user"
import { userStore } from "@/store/modules/user"
import { storeToRefs } from 'pinia'
// 获取项目pina对象
const user = userStore()
let { token } = storeToRefs(user)
export const getuserlist = async () => {
    if(token._object.token){
        let {userinfo} = await getuserinfo();
        user.updateUserName(userinfo)
    }
}